2020-2021 Sunseeker Telemetry and Lighting System
rtc_a_ex2_countermode.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void RTC_A_ISR (void)
 

Function Documentation

◆ main()

void main ( void  )

RTC_A in Counter Mode toggles P1.0 every 1s

This program demonstrates RTC in counter mode configured to source from ACLK to toggle P1.0 LED every 1s.

          MSP430F5438A
       -----------------
  /|\ |                 |
   |  |                 |
   ---|RST              |
      |                 |
      |             P1.0|-->LED

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • RTC peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • RTC_A_VECTOR

Definition at line 62 of file rtc_a_ex2_countermode.c.

References GPIO_setOutputHighOnPin().

◆ RTC_A_ISR()

void RTC_A_ISR ( void  )

Definition at line 129 of file rtc_a_ex2_countermode.c.